package com.wondertek.service.dto.sys.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.List;

@Data
public class SysRoleUpdateReq {

    @NotBlank(message = "id.not.null")
    private String id;
    /**
     * 角色名
     */
    @NotBlank(message = "role.name.not.null")
    @Length(min = 1, max = 20, message = "role.name.length")
    @Schema(name = "roleName", description = "角色名")
    private String roleName;

    /**
     * 角色编码
     */
    @Schema(name = "roleCode", description = "角色编码")
    private String roleCode;


    /**
     * 菜单ids
     */
    @Schema(name = "roleMenuReqList", description = "菜单ids")
    @NotEmpty(message="authority.name.not.null")
    private List<SysRoleMenuReq> roleMenuReqList ;

    /**
     * 说明
     */
    @Length(max = 180, message = "desc.max.length")
    @Schema(name = "description", description = "说明")
    private String description;
}
